from page.base_page import BasePage
from selenium.webdriver.common.by import By

"""客户关怀详情页面"""
class CustomCareLookPage(BasePage):
    url = '/crm5/index.php?m=customer&a=caresview&id=12'

    """定位器"""
    # 客户关怀详情
    contact_care_details_locator = (By.CSS_SELECTOR,
                                 'body > div.container > div.page-header > h4')

    def care_details(self):
        """点击查看"""
        return self.driver.find_element(*self.contact_care_details_locator).text
